class @AdminUserRoutes extends Backbone.Router
    routes:
        "Users/Create": "Create"
        "Users/Edit*path": "Edit"
        "Users/Listing*path": "Listing"
        "Users/Index": "Listing"
        "Users": "Listing"
        
    Create: ->
        model = new AdminUserCreateModel()
        view = new AdminUserCreateView(model: model)
        view.render()
        
    Edit: (path)->
        model = new AdminUserEditModel()
        model.set("UserId", Url.GetParameterByName("UserId"))
        view = new AdminUserEditView(model: model)
    
    Listing: ->
        model = new AdminUserListingModel()
        model.FillModelFromUrl()
        view = new AdminUserListingView(model: model)